package request

import (
	"company_website/src/model/common"
)

type NewID struct {
	Id int `gorm:"primary_key;AUTO_INCREMENT" json:"id" form:"id" blinding:"required"`
}
type NewType struct {
	Type        string `gorm:"primary_key;AUTO_INCREMENT" json:"type" form:"type" blinding:"required"`
	Title       string `json:"title" form:"title" blinding:"required"`
	ReqPageInfo *common.PageReqInfo
}
type NewInfo struct {
	Id      int    `gorm:"primary_key;AUTO_INCREMENT" json:"id" form:"id" blinding:"required"`
	AdminId int    `json:"admin_id" form:"admin_id" blinding:"required"`
	Title   string `json:"title" form:"title" blinding:"required"`
	Content string `json:"content" form:"content" blinding:"required"`
	Url     string `json:"url" form:"url"`
	Time    int    `json:"time" form:"time" blinding:"required"`
	Status  int    `json:"status" form:"status" blinding:"required"`
	Type    string `json:"type" form:"type" blinding:"required"`
}

func (NewInfo) TableName() string {
	return "new"
}
